package com.business.bean.basic;

import java.util.Date;

import lombok.Getter;
import lombok.Setter;
import net.sf.rose.jdbc.bean.annotation.Column;
import net.sf.rose.jdbc.bean.annotation.Table;
import net.sf.rose.jdbc.bean.annotation.Type;
import net.sf.rose.jdbc.bean.annotation.View;

/**
 * 一个工程包含多个项目
 */
@Setter
@Getter
@Table(name = "BAS_PROJECT", description = "项目表")
@View(name = "BAS_PROJECT_VIEW", description = "项目视图")
public class ProjectBean {

	@Column(pk = true, type = Type.定长文本, description = "项目编号", canNull = false, size = 32, policy = "UUID")
	private String projectID = null;

	@Column(type = Type.定长文本, description = "工程编号", size = 32)
	private String engineerID = null;

	@Column(type = Type.变长文本, description = "工程名称", size = 200)
	private transient String engineerName = null;

	@Column(type = Type.变长文本, description = "项目编号", size = 50)
	private String projectNo = null;

	@Column(type = Type.变长文本, description = "项目名称", size = 200)
	private String projectName = null;

	/** 有效：1；结束：2 */
	@Column(type = Type.数字整型, description = "项目状态")
	private int status = 0;

	@Column(type = Type.变长文本, description = "项目分类", size = 100)
	private String type = null;

	@Column(type = Type.日期时间, description = "项目开始日期")
	private Date startTime = null;

	@Column(type = Type.日期时间, description = "项目结束日期")
	private Date endTime = null;

	@Column(type = Type.变长文本, description = "说明", size = 250)
    private String description = null;
}
